<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" product="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" product="IE=edge,chrome=1">
    <meta name="viewport" product="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" product="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>账号管理</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" id="form-member" novalidate style="" enctype="multipart/form-data">
        <div class="row cl">
            <label class="form-label col-sm-2">标题：</label>
            <div class="formControls col-sm-9">
                <input type="text" class="input-text" value="品类折扣价" placeholder="" id="title" name="articletitle" disabled>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2">品类选择：</label>
            <div class="formControls col-sm-9">
                <span class="select-box size-M radius col-xs-8" style="width:70%">
                    <select class="select" name="brandclass" size="1" id="pinlei" required>
                        <script id="ascription_bob" type="text/x-dot-template">
                            <option value="0">请选择品类</option>
                            {{if( it && it.length>0 ){}}
                            {{ for(var i=0; i< it.length; i++) { }}
                            <option value="{{=it[i].category_id}}">{{=it[i].category_name}}</option>
                            {{ } }}
                            {{ }else{ }}
                            {{ } }}
                        </script>
                    </select>
                    </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2">价格基数：</label>
            <div class="formControls col-sm-9">
                <input type="text" class="input-text" value="批发价" placeholder="请输入标题" id="rich_text1" name="articletitle" disabled>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2">折扣率1：</label>
            <div class="formControls col-sm-9" >
                <input type="text" class="input-text" value="" id="discount_rate_id" name="id" style="width:85px;" placeholder="请输入比率" required>%
                <button type="button" id="my_submit">添加</button>
            </div>
        </div>
        <div class="row cl teb_lsit" id="teb_lsit">
        </div>
        <div class="row cl">
            <label class="form-label col-sm-2">添加时间：</label>
            <div class="formControls col-sm-9">
                <span class="wstxt"></span><input type="text" class="workinput wicon" id="logmin" readonly placeholder="请选择生效时间" required>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button class="btn btn-primary radius" type="submit">&nbsp;&nbsp;保存&nbsp;&nbsp;</button><button onclick="removeIframe();" class="btn radius ml-10" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../../ht-js/operation-js/operation_product/discount_add.js?rev=@@hash"></script>
<!--报错就是位置错了-->
<link type="text/css" rel="stylesheet" href="../../../ht-js/operation-js/time-js/jedate.css">
<script type="text/javascript" src="../../../ht-js/operation-js/time-js/jquery.jedate.js?rev=@@hash"></script>
<script>
    var start = {
        format: 'YYYY-MM-DD hh:mm:59',
        okfun: function(obj){
            minDate = obj.val.substring(0,obj.val.length-5)+"00:00:00"; //开始日选好后，重置结束日的最小日期
        }
    };
//    //这里是日期联动的关键
//    function endDates() {
//        //将结束日期的事件改成 false 即可
//        end.trigger = false;
//        $("#logmax").jeDate(end);
//    }
    $('#logmin').jeDate(start);

    $(function(){
        $("#form-member-add").validate({
            rules: {
                username: {
                    required: true,
                },
                inform: {
                    required: true,
                    maxlength: 80,
                },
                email:{
                    required: true,
                    email:true
                },
                moli:{
                    required: true,
                }
            },
            onkeyup: false,
            focusCleanup: true,
            success: "valid",
            submitHandler:function(form){
            }
        })
        web.loadMyk();
    });
    /*角色编辑*/
    function roles_edit(title,url,id,w,h){
        layer_show(title,url,w,h);
    }
    $.validator.addMethod("idCheck", function(value, element) {
        var tel = /^(8[8-9])(\.[0-9]{1,2})?$|^(9[0-9])(\.[0-9]{1,2})?$|^([1-2][0-9][0-9])(\.[0-9]{1,2})?$/;
        return this.optional(element) || (tel.test(value));
    }, "数字范围为88.00-299.99");
</script>
<style>
    .error{
        color:red;
    }
</style>
</body>
</html>